<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">


<xsl:template match="/">
    <xsl:for-each select="decks/deck">
    	<div class="col-sm-3">
		<!--<div class="list-group">-->
			 <!-- 
			 <xsl:choose>
	          <xsl:when test="position()=1">
	            <a href="#" class="list-group-item active">
	            	<h4 class="list-group-item-heading"><xsl:value-of select="name"/></h4>
	        		<p class="list-group-item-text"><xsl:value-of select="shortDescription"/></p>
	         	</a>
	          </xsl:when>
	          <xsl:otherwise>
	            <a href="#" class="list-group-item">
	            	<h4 class="list-group-item-heading"><xsl:value-of select="name"/></h4>
	        		<p class="list-group-item-text"><xsl:value-of select="shortDescription"/></p>
	         	</a>
	          </xsl:otherwise>
	        </xsl:choose>
	        -->
			
			<div class="panel panel-primary panel-first">
            	<div class="panel-heading">
              		<h3 class="panel-title"><xsl:value-of select="name"/></h3>
           		</div>
            	<div class="panel-body">
              		<xsl:value-of select="description"/>
            	</div>
          	</div>
          	
          	<div class="panel  panel-primary panel-second">
            	<div class="panel-heading">
              		<h3 class="panel-title"><xsl:value-of select="name"/></h3>
           		</div>
            	<div class="panel-body">
              		<xsl:value-of select="description"/>
            	</div>
          	</div>
          	
          	<div class="panel  panel-primary panel-third">
            	<div class="panel-heading">
              		<h3 class="panel-title"><xsl:value-of select="name"/></h3>
           		</div>
            	<div class="panel-body">
              		<xsl:value-of select="description"/>
            	</div>
          	</div>
			
			<!--  
            <a href="#" class="list-group-item active">
            	<h4 class="list-group-item-heading"><xsl:value-of select="name"/></h4>
        		<p class="list-group-item-text"><xsl:value-of select="shortDescription"/></p>
         	</a>
	     	-->
        </div>
    </xsl:for-each>
</xsl:template>

</xsl:stylesheet>
